<!-- Always returns a div with json data if you also passed in an active record object 
   This is a bit obfuscated and I would like something better.
-->
<%="  <div id=\'#{div_id_actual}\'> </div>" %>
<% data_id = div_id_actual + "_json_data" %>
<% if (ar_obj) %>
  <input id='<%=data_id%>' type='hidden' value='<%= URI.escape(ar.to_json(), "'")%>' />
<% end %>

